
<div class="section" id="khuvuclist">

	<div class="section-title">Quản lý lập phiếu giao báo</div>
    
    <div class="section-content padding1">
    	
        <div class="clearer">^&nbsp;</div>
    
    	<form name="frm" id="frm" action="<?php echo $action?>" method="post" enctype="multipart/form-data">
        
        	<input type="hidden" name="phieugiaobaoid" value="<?php echo $item['phieugiaobaoid']?>">
            <input type="hidden" id="nhanvienquanlyid" name="nhanvienquanlyid" value="<?php echo $item['nhanvienquanlyid']?>">
        	<div id="error" class="error" style="display:none"></div>
            
        	
            	
            <div id="fragment-thongtin">
            	<table class="table-form">
                	<tr>
                    	<td><label>Mã phiếu:</label></td>
                        <td><?php echo $item['maphieugiaobao']?></td>
                    </tr>
                    
                    <tr>
                    	<td><label>Ngày lập:</label></td>
                        <td><?php echo $this->date->formatMySQLDate($item['ngaylap'])?></td>
                    </tr>
                    <tr>
                    	<td><label>Khu vực:</label></td>
                        <td>
                        	<?php echo $item['tenkhuvucgiao']?>
                        	
                        </td>
                    </tr>
                    <tr>
                    	<td><label>Nhân viên nhận:</label></td>
                        <td>
                        	<?php echo $item['tennhanviengiaobao']?>
                        </td>
                    </tr>
                    <tr>
                    	<td><label>Ghi chú:</label></td>
                        <td><?php echo $item['ghichu']?></td>
                    </tr>
                    
                </table>
                
            </div>
            <div id="tinhhinhgiaobao" class="khuvuc treeindex">
				
                
                  <table class="example data-table table-form">
                    <thead>
                        <tr class="tr-head">
                        	
                            <th>Loại báo</th>
                            <th>Tên kỳ báo</th>
                            <th>Ngày phát hành</th>
                            <th>Số lượng giao</th>
                            
                            
                        </tr>
                    </thead>
                    <tbody id="listgiaobao">  
                   	<?php foreach($data_ctphieuphanphoi as $ct){?>
                    	<tr>
                        	<td><?php echo $ct['tenloaibao']?></td>
                            <td><?php echo $ct['tenkybao']?></td>
                            <td><?php echo $this->date->formatMySQLDate($ct['ngayphathanh'])?></td>
                            <td class="number"><?php echo $this->string->numberFormate($ct['soluong'])?></td>
                        </tr>
                    <?php } ?>
                	</tbody>
                    <tfoot>
                    	<tr>
                        	<td></td>
                            <td></td>
                            <td>Tổng số lượng đã  giao</td>
                            <td class="number">
                            	<span id="lblTongSongLuongGiao"><?php echo $this->string->numberFormate($item['tongsoluonggiao'])?></span>
                            </td>
                           
                        </tr>
                    </tfoot>
                </table>
                
             
            </div> 
            
                
            
            
        </form>
    
    </div>
    
</div>
<?php if($_GET['print'] =="true" ){ ?>
	<script language="javascript">
        window.print();
    </script>
<?php } ?>

